package com.woyou.utils.eventbus;

/**
 * fm 打开事件
 * 
 * @author longtao.li
 * 
 * @param <T>
 */
public class EventOpenFM<T, E> implements IEvent<T> {

	public T fmTag; // 要跳转的fm
	public E bean; // 要携带的数据
	public boolean isTransparent = false;//要显示的Fragment是否是透明的
	
	/**
	 * 是否销毁当前层级的所有Fragment
	 */
	private boolean isDestoryAll;
	

	public boolean isDestoryAll() {
		return isDestoryAll;
	}

	public void setDestoryAll(boolean isDestoryAll) {
		this.isDestoryAll = isDestoryAll;
	}

	public boolean isTransparent() {
		return isTransparent;
	}

	public void setTransparent(boolean isTransparent) {
		this.isTransparent = isTransparent;
	}

	public EventOpenFM(T tag, E bean) {
		this.fmTag = tag;
		this.bean = bean;
	}

	@Override
	public int getId() {
		return 0;
	}

	@Override
	public void setId(int id) {

	}

	@Override
	public T getData() {
		return fmTag;
	}

	public E getBean() {
		return bean;
	}

}
